import type {
  IconRegistry,
  VipIconThemeConfig,
  VipIconThemeType,
  VipUserIconColorConfig,
} from './interfaces'
import { ThemeType } from '../../../types/interfaces'
import { ThemeVarService } from '../../abstract/style/theme_var/service'
import {
  IconCategory,
} from './interfaces'

// ====================================================================================
//                                  图标配置
// ====================================================================================
// 图标颜色
export const ICON_COLOR = {
  hover: `var(${ThemeVarService.getInstance().icon.hover})`,
  active: `var(${ThemeVarService.getInstance().icon.active})`,
  disabled: `var(${ThemeVarService.getInstance().icon.disabled})`,
  default: `var(${ThemeVarService.getInstance().icon.default})`,
}

// 图标 ID 常量（注意：可以不理会提示需要添加类型断言）
export const ICON_IDS = {
  [IconCategory.PLATFORM]: {
    greasyFork: 'greasyFork',
    huggingface: 'huggingface',
    oschina: 'oschina',
    aliyun: 'aliyun',
    imooc: 'imooc',
    runoob: 'runoob',
    baidu: 'baidu',
    quark: 'quark',
    jetbrains: 'jetbrains',
  },
  [IconCategory.AI]: {
    deepseek: 'deepseek',
    douBao: 'douBao',
  },
  [IconCategory.BLOG]: {
    csdn: 'csdn',
    jianShu: 'jianShu',
    jueJin: 'jueJin',
    zhiHu: 'zhiHu',
    cnBlogs: 'cnBlogs',
    stackoverflow: 'stackoverflow',
  },
  [IconCategory.OPEN_SOURCE]: {
    github: 'github',
    gitee: 'gitee',
  },
  [IconCategory.CLOUD]: {
    baiduCloud: 'baiduCloud',
    lanzouCloud: 'lanzouCloud',
  },
  [IconCategory.SOCIAL]: {
    weixin: 'weixin',
    weiBo: 'weiBo',
  },
  [IconCategory.WRITING]: {
    yuque: 'yuque',
  },
  [IconCategory.USER]: {
    avatarGreen: 'avatarGreen',
    avatarBlue: 'avatarBlue',
    avatarGold: 'avatarGold',
    home: 'home',
  },
  [IconCategory.AUTH]: {
    logout: 'logout',
  },
  [IconCategory.ROLE]: {
    visitor: 'visitor',
    author: 'author',
    developer: 'developer',
    creator: 'creator',
    creatorNormal: 'creatorNormal',
    vipUser: 'vipUser',
  },
  [IconCategory.METADATA]: {
    logo: 'logo',
    id: 'id',
    index: 'index',
  },
  [IconCategory.NAVIGATION]: {
    arrowsDown: 'arrowsDown',
    arrowsUp: 'arrowsUp',
    arrowsLeft: 'arrowsLeft',
    arrowsRight: 'arrowsRight',
  },
  [IconCategory.ACTION]: {
    fold: 'fold',
    close: 'close',
    search: 'search',
    install: 'install',
    download: 'download',
    copy: 'copy',
    run: 'run',
    follow: 'follow',
    view: 'view',
    viewAll: 'viewAll',
    star: 'star',
    jumpTo: 'jumpTo',
    refresh: 'refresh',
    report: 'report',
  },
  [IconCategory.INTERFACE]: {
    pageTop: 'pageTop',
    pagePrev: 'pagePrev',
    pageNext: 'pageNext',
    pageEnd: 'pageEnd',
    pageMore: 'pageMore',
    pageAll: 'pageAll',
    pageBatch: 'pageBatch',
    pageCancel: 'pageCancel',
    pageScrollLoad: 'pageScrollLoad',
    pageNoScrollLoad: 'pageNoScrollLoad',
  },
  [IconCategory.DEVELOPMENT]: {
    donate: 'donate',
    update: 'update',
    version: 'version',
    python: 'python',
  },
  [IconCategory.TOOL]: {
    pycharm: 'pycharm',
    docker: 'docker',
    xunlei: 'xunlei',
  },
  [IconCategory.AI_TOOL]: {
    ollama: 'ollama',
  },
  [IconCategory.VIDEO]: {
    bilibili: 'bilibili',
    youtube: 'youtube',
    haoKan: 'haoKan',
    douYin: 'douYin',
    soHu: 'soHu',
    tencent: 'tencent',
    xiGua: 'xiGua',
    youku: 'youku',
    iQiYi: 'iQiYi',
    kuaiShou: 'kuaiShou',
  },
  [IconCategory.RATING]: {
    good: 'good',
    bad: 'bad',
    ok: 'ok',
    unrated: 'unrated',
    like: 'like',
    dislike: 'dislike',
  },
  [IconCategory.LINK]: {
    link: 'link',
    linkExpired: 'linkExpired',
  },
  [IconCategory.TIME]: {
    clock: 'clock',
    calendar: 'calendar',
  },
  [IconCategory.OTHER]: {
    ad: 'ad',
    score: 'score',
    pass: 'pass',
    expire: 'expire',
    superSearch: 'superSearch',
    dotsThree: 'dotsThree',
    script: 'script',
    discussions: 'discussions',
    more: 'more',
    content: 'content',
    menu: 'menu',
    scroll: 'scroll',
  },
} as const satisfies IconRegistry

// 图标分类映射
export const CATEGORY_MAPPING: Record<string, IconCategory[]> = {
  // 基础操作
  search: [IconCategory.ACTION, IconCategory.INTERFACE],
  install: [IconCategory.ACTION, IconCategory.INTERFACE],
  download: [IconCategory.ACTION, IconCategory.FILE],
  copy: [IconCategory.ACTION, IconCategory.INTERFACE],
  run: [IconCategory.ACTION, IconCategory.DEVELOPMENT],
  follow: [IconCategory.SOCIAL, IconCategory.INTERFACE],
  view: [IconCategory.ACTION, IconCategory.INTERFACE],
  star: [IconCategory.ACTION, IconCategory.SOCIAL],
  jumpTo: [IconCategory.NAVIGATION, IconCategory.INTERFACE],
  refresh: [IconCategory.ACTION, IconCategory.INTERFACE],
  report: [IconCategory.ACTION, IconCategory.SOCIAL],

  // 箭头
  arrows: [IconCategory.NAVIGATION, IconCategory.INTERFACE],

  // 登录相关
  logout: [IconCategory.AUTH, IconCategory.INTERFACE],

  // 常用图标
  author: [IconCategory.USER, IconCategory.SOCIAL],
  vip: [IconCategory.USER, IconCategory.BADGE],
  ad: [IconCategory.COMMERCE, IconCategory.MEDIA],
  clock: [IconCategory.TIME, IconCategory.INTERFACE],
  calendar: [IconCategory.TIME, IconCategory.INTERFACE],
  update: [IconCategory.SYSTEM, IconCategory.DEVELOPMENT],
  version: [IconCategory.SYSTEM, IconCategory.DEVELOPMENT],

  // 平台分类
  huggingface: [IconCategory.AI, IconCategory.PLATFORM],
  oschina: [IconCategory.OPEN_SOURCE, IconCategory.PLATFORM],
  aliyun: [IconCategory.CLOUD, IconCategory.PLATFORM],
  imooc: [IconCategory.EDUCATION, IconCategory.PLATFORM],
  weibo: [IconCategory.SOCIAL, IconCategory.PLATFORM],
  runoob: [IconCategory.EDUCATION, IconCategory.PLATFORM],
  quark: [IconCategory.BROWSER, IconCategory.PLATFORM],

  // 开源平台
  github: [IconCategory.OPEN_SOURCE, IconCategory.DEVELOPMENT, IconCategory.PLATFORM],
  gitee: [IconCategory.OPEN_SOURCE, IconCategory.DEVELOPMENT, IconCategory.PLATFORM],

  // 软件工具
  weixin: [IconCategory.SOCIAL, IconCategory.COMMUNICATION],
  python: [IconCategory.DEVELOPMENT, IconCategory.PROGRAMMING],
  jetbrains: [IconCategory.DEVELOPMENT, IconCategory.TOOL],
  pycharm: [IconCategory.DEVELOPMENT, IconCategory.TOOL],
  docker: [IconCategory.DEVELOPMENT, IconCategory.DEVOPS],
  xunlei: [IconCategory.NETWORK, IconCategory.TOOL],
  yuque: [IconCategory.PRODUCTIVITY, IconCategory.TOOL],

  // 云平台
  baiduCloud: [IconCategory.CLOUD, IconCategory.STORAGE],
  lanzouCloud: [IconCategory.CLOUD, IconCategory.STORAGE],

  // 博客平台
  csdn: [IconCategory.BLOG, IconCategory.DEVELOPMENT],
  jianShu: [IconCategory.BLOG, IconCategory.WRITING],
  jueJin: [IconCategory.BLOG, IconCategory.DEVELOPMENT],
  zhihu: [IconCategory.BLOG, IconCategory.KNOWLEDGE],
  cnblogs: [IconCategory.BLOG, IconCategory.DEVELOPMENT],
  stackoverflow: [IconCategory.QNA, IconCategory.DEVELOPMENT],

  // AI相关
  ai: [IconCategory.AI, IconCategory.TECHNOLOGY],
  aiDeepseek: [IconCategory.AI, IconCategory.PLATFORM],
  aiDouBao: [IconCategory.AI, IconCategory.PLATFORM],
  ollama: [IconCategory.AI, IconCategory.DEVELOPMENT],

  // 视频平台
  bilibili: [IconCategory.VIDEO, IconCategory.ENTERTAINMENT],
  youtube: [IconCategory.VIDEO, IconCategory.ENTERTAINMENT],
  haoKan: [IconCategory.VIDEO, IconCategory.ENTERTAINMENT],
  douYin: [IconCategory.VIDEO, IconCategory.SOCIAL],
  soHuVideo: [IconCategory.VIDEO, IconCategory.ENTERTAINMENT],
  tencentVideo: [IconCategory.VIDEO, IconCategory.ENTERTAINMENT],
  xiGuaVideo: [IconCategory.VIDEO, IconCategory.ENTERTAINMENT],
  youkuVideo: [IconCategory.VIDEO, IconCategory.ENTERTAINMENT],
  iQiYiVideo: [IconCategory.VIDEO, IconCategory.ENTERTAINMENT],
  kuaiShouVideo: [IconCategory.VIDEO, IconCategory.SOCIAL],

  // 评价系统
  good: [IconCategory.RATING, IconCategory.INTERFACE],
  bad: [IconCategory.RATING, IconCategory.INTERFACE],
  ok: [IconCategory.RATING, IconCategory.INTERFACE],
  unrated: [IconCategory.RATING, IconCategory.INTERFACE],
  like: [IconCategory.SOCIAL, IconCategory.RATING],
  dislike: [IconCategory.SOCIAL, IconCategory.RATING],

  // 链接相关
  link: [IconCategory.NETWORK, IconCategory.INTERFACE],
  linkExpired: [IconCategory.NETWORK, IconCategory.ERROR],

  // 分页导航
  page: [IconCategory.NAVIGATION, IconCategory.INTERFACE],

  // 角色身份
  developer: [IconCategory.USER, IconCategory.DEVELOPMENT],

  // 其他功能
  score: [IconCategory.RATING, IconCategory.INTERFACE],
  pass: [IconCategory.STATUS, IconCategory.INTERFACE],
  expire: [IconCategory.TIME, IconCategory.STATUS],
}

// ====================================================================================
//                                  图标颜色
// ====================================================================================
export type IconThemeColorConfig = Record<ThemeType, string>
export type IconThemeCategory = 'base' | 'special'
export type IconThemeSubCategory = 'default' | 'hover' | 'active' | 'disabled'
export type IconThemeColor = Record<IconThemeCategory, Record<string, IconThemeColorConfig>>
export const ICON_THEME_COLOR: IconThemeColor = {
  base: {
    default: {
      [ThemeType.LIGHT]: '#8a8a8a',
      [ThemeType.DARK]: '#8a8a8a',
      [ThemeType.PINK]: '#8a8a8a',
    },
    hover: {
      [ThemeType.LIGHT]: '#2563EB',
      [ThemeType.DARK]: '#2563EB',
      [ThemeType.PINK]: '#2563EB',
    },
    active: {
      [ThemeType.LIGHT]: '#10B981',
      [ThemeType.DARK]: '#10B981',
      [ThemeType.PINK]: '#10B981',
    },
    disabled: {
      [ThemeType.LIGHT]: '#EF4444',
      [ThemeType.DARK]: '#EF4444',
      [ThemeType.PINK]: '#EF4444',
    },
  },
  special: {
    [ICON_IDS.openSource.github]: {
      [ThemeType.LIGHT]: '#1f2328',
      [ThemeType.DARK]: '#f6f8fa',
      [ThemeType.PINK]: '#1f2328',
    },
    search: {
      [ThemeType.LIGHT]: '#fc5531',
      [ThemeType.DARK]: '#fc5531',
      [ThemeType.PINK]: '#1e88e5',
    },
  },
}

// ====================================================================================
//                                 脚本 VIP 用户图标
// ====================================================================================
export const VIP_ICONS = {
  LEVEL_ONE: `<svg viewBox="0 0 1236 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M929.185685 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787zM10.113187 451.591903A158.886909 158.886909 0 0 1 0.579972 407.809733a120.754051 120.754051 0 0 0 9.533215 43.78217zM1214.122875 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535609-17.654101 117.399772 117.399772 0 0 1 15.535609 17.654101l24.892283 35.308202L847.97682 379.210089h9.709756l-55.78696 269.048499-65.673255-1.235787 28.776184-138.055069-277.522467 432.878556L534.263445 988.629656a117.929395 117.929395 0 0 0 168.420124 0L1201.05884 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219z" fill="{{right}}" data-spm-anchor-id="a313x.search_index.0.i3.646f3a81zw4xn3" class="selected"/><path d="M779.125826 441.352525h-0.882705l-52.962303 21.538003v-52.962303l76.089175-31.071218 46.606827 0.882705L1036.346078 85.62239l-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535609-17.654101A113.339328 113.339328 0 0 0 929.185685 1.235787a98.156802 98.156802 0 0 0-14.476363 0H318.35379a107.690016 107.690016 0 0 0-96.744473 52.962303L16.468663 344.784592A92.507489 92.507489 0 0 0 0.579972 407.809733a158.886909 158.886909 0 0 0 9.180133 43.78217v0.882705c0 1.412328 1.235787 2.648115 1.76541 4.060444a105.924606 105.924606 0 0 0 33.013169 43.076006l442.941394 442.23523L765.002545 508.967732zM546.268234 650.730163h-114.222033l-58.611616-364.380645h-61.25973v-61.789353h130.993429l47.312991 291.645748 119.871346-291.645748H724.398113z" fill="{{left}}"/><path d="M490.481275 516.205913l-47.312991-291.645748h-130.993429v61.789353h61.25973l58.611616 364.380645h114.222033l178.30642-426.169998h-114.222033l-119.871346 291.645748zM725.457359 409.398602l-0.176541 53.315385 52.962303-21.538003h0.882705l-14.123281 67.791748-28.776184 138.055069 65.673255 1.235787 55.963501-268.871958-9.709756-0.176541-46.606827-0.882705-76.089175 31.071218z" fill="{{text}}"/></svg>`,
  LEVEL_TWO: `<svg viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M809.558467 459.889331a28.246562 28.246562 0 0 0-3.707361-15.359068l-67.615207 105.924606c41.310596-35.837825 70.969486-63.554764 71.322568-90.565538zM9.47461 451.06228A167.184336 167.184336 0 0 1 0.117937 400.395011a121.813297 121.813297 0 0 0 9.356673 50.667269zM928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787z" fill="{{right}}"/><path d="M1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202-192.429701 300.119717a68.497912 68.497912 0 0 1 35.308202 63.378222c-1.059246 54.727713-42.899465 89.682833-82.621193 120.400969l-25.421905 18.713347 85.975472 1.76541-11.828248 58.258533-168.420123-3.177738-189.428504 296.765438L533.80141 988.629656a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219z" fill="{{right}}"/><path d="M664.441757 645.787014l9.003591-44.488334 56.493124-44.311794 8.297427-7.238181 67.615207-105.924606a32.483546 32.483546 0 0 0-28.952726-13.240576 95.685227 95.685227 0 0 0-51.196893 11.828248l-10.062837-49.608024a170.538616 170.538616 0 0 1 80.5027-18.713347 100.628376 100.628376 0 0 1 47.489532 11.828248l192.429701-300.119717-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535608-17.654101A112.809705 112.809705 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 167.184336 167.184336 0 0 0 9.356673 50.667269v1.059246a34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 32.307005 42.193301l442.941394 442.23523 189.605045-295.882733z m-232.857592 4.943149l-58.611615-364.380645h-61.259731v-61.789353h130.993429l47.312991 291.645748 119.871346-291.645748H723.936077L545.806198 650.730163z" fill="{{left}}"/><path d="M609.890585 224.560165l-119.871346 291.645748-47.312991-291.645748h-130.993429v61.612812h61.259731l58.611615 364.557186h114.222033l178.30642-426.169998h-114.222033zM715.462109 392.803747l10.062837 49.608024a95.685227 95.685227 0 0 1 51.196893-11.828248 32.483546 32.483546 0 0 1 29.129267 13.94674 28.246562 28.246562 0 0 1 3.707361 15.359068c0 27.010775-30.011972 54.727713-70.616404 89.859374l-8.297427 7.238181-56.493124 44.311794-9.003591 44.488334h12.18133l168.420123 3.177738 11.828248-58.258533-85.975472-1.76541 25.421905-18.713347c39.721727-30.718136 81.561947-65.673256 82.621193-120.400969a68.497912 68.497912 0 0 0-35.308202-63.378222 100.628376 100.628376 0 0 0-47.489532-11.828248 170.538616 170.538616 0 0 0-81.385405 18.183724z" fill="{{text}}"/></svg>`,
  LEVEL_THREE: `<svg viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M789.785874 563.518904c0-19.066429-13.94674-29.482349-39.898268-31.777382l-36.897071 57.72891a123.578707 123.578707 0 0 0 29.83543 4.413525c27.363857 0.529623 46.606827-11.298625 46.959909-30.365053zM803.556073 451.415362a8.297427 8.297427 0 0 0 0-3.001197l-15.535609 24.186119a24.5392 24.5392 0 0 0 15.535609-21.184922z" fill="{{right}}"/><path d="M1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202-192.782783 300.119717a57.72891 57.72891 0 0 1 32.483546 52.962303 70.616404 70.616404 0 0 1-57.905451 64.79055v0.882705a57.199287 57.199287 0 0 1 42.369842 58.435075c-1.059246 57.375828-58.258533 88.270505-118.282477 88.270505a178.836043 178.836043 0 0 1-61.25973-10.945543L487.018042 941.846288 533.80141 988.629656a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219zM9.47461 451.06228A162.947352 162.947352 0 0 1 0.117937 400.395011a121.813297 121.813297 0 0 0 9.356673 50.667269zM928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787z" fill="{{right}}"/><path d="M669.208364 634.311849l20.302216-52.962303a143.3513 143.3513 0 0 0 23.479955 9.003591l36.897071-57.72891h-17.654101l10.59246-51.549975h7.061641a86.858177 86.858177 0 0 0 37.956317-6.885099l15.535609-24.186119c-1.412328-9.356674-10.592461-16.771396-29.129267-17.654101a112.280082 112.280082 0 0 0-49.254942 9.533215l-4.590066-52.962303a164.712762 164.712762 0 0 1 70.616404-14.299822 112.809705 112.809705 0 0 1 51.549975 12.357871l192.782783-300.119717-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535609-17.654101A112.809705 112.809705 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 162.947352 162.947352 0 0 0 9.356673 50.667269v1.059246a34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 32.307005 42.193301l442.941394 442.23523 193.135865-301.355504a47.312991 47.312991 0 0 1-10.945543-6.178935z m-237.624199 16.418314l-58.611615-364.380645h-61.259731v-61.789353h130.993429l47.312991 291.645748 119.871346-291.645748H723.936077L545.806198 650.730163z" fill="{{left}}"/><path d="M609.890585 224.560165l-119.871346 291.645748-47.312991-291.645748h-130.993429v61.789353h61.259731l58.611615 364.380645h114.222033l178.30642-426.169998h-114.222033zM720.405257 388.390222l4.590066 52.962303a112.280082 112.280082 0 0 1 49.254942-9.533215c17.654101 0 27.716939 7.767804 29.129267 17.654101a8.297427 8.297427 0 0 1 0 3.001197 24.5392 24.5392 0 0 1-15.71215 21.184922 86.858177 86.858177 0 0 1-37.956317 6.885099h-7.061641l-10.59246 51.549975h18.536806c25.951528 2.295033 40.25135 12.710953 39.898268 31.777382s-19.596052 30.894677-46.959909 30.365053a123.578707 123.578707 0 0 1-29.83543-4.413525 143.3513 143.3513 0 0 1-23.479955-9.003591l-20.302216 52.962303a47.312991 47.312991 0 0 0 10.945543 6.178935 178.836043 178.836043 0 0 0 60.730107 11.475166c60.023943 1.059246 117.223231-30.188513 118.282477-88.270505a57.199287 57.199287 0 0 0-42.369842-58.435075v-0.882705a70.616404 70.616404 0 0 0 57.905451-64.79055 57.72891 57.72891 0 0 0-32.483546-52.962303 112.809705 112.809705 0 0 0-51.549975-12.357871 164.712762 164.712762 0 0 0-70.969486 14.652904z" fill="{{text}}"/></svg>`,
  LEVEL_FOUR: `<svg viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M748.651819 533.683473h40.427891l10.415919-43.605629c4.413525-17.654101 10.062838-37.073612 14.829445-54.727714H812.206582c-9.886297 15.182527-19.596052 29.835431-29.482348 43.958712z" fill="{{right}}"/><path d="M1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202L847.514784 379.38663h35.308202l-31.777382 156.062253h28.599644l-10.592461 51.726516h-28.423102l-13.240576 61.612812-61.965894-1.235787 13.240575-61.436271-62.848599-1.235787-229.503313 356.965922L533.80141 988.629656a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219zM9.47461 451.06228A167.184336 167.184336 0 0 1 0.117937 400.395011a121.813297 121.813297 0 0 0 9.356673 50.667269zM928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787z" fill="{{right}}"/><path d="M671.856479 583.997661l9.180133-45.547581 122.519461-159.946155H847.514784L1035.884042 85.62239l-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535608-17.654101A112.809705 112.809705 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 167.184336 167.184336 0 0 0 9.356673 50.667269v1.059246a34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 32.307005 42.193301l442.941394 442.23523 229.503313-356.965922z m-240.272314 66.732502l-58.611615-364.380645h-61.259731v-61.789353h130.993429l47.312991 291.645748 119.871346-291.645748H723.936077L545.806198 650.730163z" fill="{{left}}"/><path d="M776.89838 487.78281l-32.307005 44.841417h3.707362l35.308202-52.962303c-2.295033 3.001197-4.060443 5.649312-6.708559 8.120886z" fill="{{left}}"/><path d="M609.890585 224.560165l-119.871346 291.645748-47.312991-291.645748h-130.993429v61.612812h61.259731l58.611615 364.557186h114.222033l178.30642-426.169998h-114.222033zM681.036612 538.45008l-9.180133 45.547581 43.958712 0.882705 62.848599 1.235787-13.240575 61.436271 61.965894 1.235787 13.240576-61.612812h28.423102l10.592461-51.726516H851.045604l31.777382-155.53263h-79.266913z m133.288462-102.393785c-4.766607 17.654101-10.41592 37.073612-14.829445 54.727713l-10.415919 43.605629h-44.135253L776.89838 487.78281c1.941951-2.471574 3.707361-5.119689 5.472772-7.767804 9.886297-14.123281 19.596052-28.776185 29.482348-43.958711z" fill="{{text}}"/></svg>`,
  LEVEL_FIVE: `<svg viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M9.47461 451.06228A162.064647 162.064647 0 0 1 0.117937 400.395011a121.813297 121.813297 0 0 0 9.356673 50.667269zM928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787zM794.552481 557.516509c0-17.654101-10.592461-31.071218-37.956317-35.308202l-43.958711 68.674453a121.460215 121.460215 0 0 0 26.30461 3.53082c25.068823 0.176541 55.610418-10.769002 55.610418-36.897071z" fill="{{right}}"/><path d="M1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202L847.514784 379.38663h40.25135l-12.887493 58.258534-64.437469-1.235787-20.831839 32.660086a81.738488 81.738488 0 0 1 50.66727 19.949134 71.67565 71.67565 0 0 1 23.656495 58.258534c-1.235787 66.026338-57.199287 105.924606-126.932986 103.806114a151.295646 151.295646 0 0 1-57.199287-10.239379l-192.782783 300.119717 46.783368 47.666073a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219z" fill="{{right}}"/><path d="M778.487249 469.775627a56.493123 56.493123 0 0 1 7.767805 0h3.354279l20.831839-32.660086h-22.067626z" fill="{{left}}"/><path d="M670.973774 635.547636l17.654101-52.962303a86.858177 86.858177 0 0 0 22.950332 8.650509l43.958711-68.674453a132.229216 132.229216 0 0 0-22.244167-2.118492h-29.482349l40.427891-143.174759 102.570327 1.941951L1035.884042 85.62239l-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535608-17.654101A112.809705 112.809705 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 162.064647 162.064647 0 0 0 9.356673 50.667269v1.059246a34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 32.307005 42.193301l442.941394 442.23523 192.782783-300.119717A35.308202 35.308202 0 0 1 670.973774 635.547636z m-240.095773 14.476363l-57.905451-363.674481h-61.259731v-61.789353h130.993429l47.312991 291.645748 119.871346-291.645748H723.936077L545.806198 650.730163z" fill="{{left}}"/><path d="M609.890585 224.560165l-119.871346 291.645748-47.312991-291.645748h-130.993429v61.789353h61.259731l58.611615 364.380645h114.222033l178.30642-426.169998h-114.222033zM704.516566 520.619438c10.062838 0 17.654101-1.059246 29.482349 0a132.229216 132.229216 0 0 1 22.244167 2.118492c27.363857 4.590066 38.309399 17.654101 37.956317 35.308202 0 26.128069-30.188513 37.073612-55.610418 36.543989a121.460215 121.460215 0 0 1-26.30461-3.53082A86.858177 86.858177 0 0 1 688.627875 582.585333l-17.654101 52.962303a35.308202 35.308202 0 0 0 8.120887 4.766607 151.295646 151.295646 0 0 0 57.199287 10.239379c69.733699 1.412328 125.697199-37.779776 126.932986-103.806114a71.67565 71.67565 0 0 0-23.656495-57.728911 81.738488 81.738488 0 0 0-50.66727-19.949134h-3.354279a56.493123 56.493123 0 0 0-7.767805 0l9.886297-33.013168h22.067626l64.437469 1.235787 12.887493-58.258534h-40.25135l-102.570327-1.941951z" fill="{{text}}"/></svg>`,
  LEVEL_SIX: `<svg viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M746.533327 567.402806c0 17.654101 7.767804 33.18971 23.656495 33.542792 24.5392 0 35.308202-32.836628 35.308202-54.727713a25.598446 25.598446 0 0 0-24.36266-29.482349 33.895874 33.895874 0 0 0-29.658889 20.478757 29.835431 29.835431 0 0 0-3.53082 11.828248 94.802522 94.802522 0 0 0-1.412328 18.360265z" fill="{{right}}"/><path d="M1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202L849.280194 376.738515h9.003592a127.462609 127.462609 0 0 1 21.361462 0l-11.475166 55.433877a117.04669 117.04669 0 0 0-20.655298 0 121.283674 121.283674 0 0 0-40.427891 10.062838l-17.654101 28.246561a83.327357 83.327357 0 0 1 22.77379-3.001197 66.555961 66.555961 0 0 1 62.495518 72.911437 108.043098 108.043098 0 0 1-108.572721 111.397378 79.619995 79.619995 0 0 1-70.616404-36.190907L487.018042 941.846288 533.80141 988.629656a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219zM9.47461 451.06228A167.184336 167.184336 0 0 1 0.117937 400.395011a121.813297 121.813297 0 0 0 9.356673 50.667269zM928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787z" fill="{{right}}"/><path d="M681.389694 556.810345a185.897683 185.897683 0 0 1 69.204076-144.587087 187.310012 187.310012 0 0 1 98.686424-35.308202l186.603848-291.292666-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535608-17.654101A113.339328 113.339328 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 167.184336 167.184336 0 0 0 9.356673 50.667269v1.059246a34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 32.307005 42.193301l442.941394 442.23523 209.024556-326.247786a105.924606 105.924606 0 0 1-14.652904-58.788157z m-249.805529 93.919818l-58.611615-364.380645h-61.259731v-61.789353h130.993429l47.312991 291.645748 119.871346-291.645748H723.936077L545.806198 650.730163z" fill="{{left}}"/><path d="M764.54051 481.956957h0.882705a69.380617 69.380617 0 0 1 23.656495-11.828248l17.654101-28.246561a88.270505 88.270505 0 0 0-42.193301 40.074809z" fill="{{left}}"/><path d="M609.890585 224.560165l-119.871346 291.645748-47.312991-291.645748h-130.993429v61.789353h61.259731l58.611615 364.380645h114.222033l178.30642-426.169998h-114.222033zM681.389694 556.810345a105.924606 105.924606 0 0 0 14.652904 58.788157 79.619995 79.619995 0 0 0 70.616404 36.190907 108.043098 108.043098 0 0 0 108.572721-111.397378A66.555961 66.555961 0 0 0 812.206582 467.480594a83.327357 83.327357 0 0 0-23.656495 3.177738 69.380617 69.380617 0 0 0-23.656495 11.828248h-0.882706a88.270505 88.270505 0 0 1 42.546384-39.545186 121.283674 121.283674 0 0 1 40.957514-10.592461 117.04669 117.04669 0 0 1 20.655298 0l11.475166-55.433877a127.462609 127.462609 0 0 0-21.361462 0h-9.003592a187.310012 187.310012 0 0 0-98.686424 35.308202 185.897683 185.897683 0 0 0-69.204076 144.587087z m100.098752-40.074809a25.598446 25.598446 0 0 1 24.36266 29.482349c0 21.891085-11.122084 55.257336-35.308202 54.727713-15.888691 0-24.009577-16.241773-23.656495-33.542792a94.802522 94.802522 0 0 1 1.76541-17.654101 29.835431 29.835431 0 0 1 3.53082-11.828248 33.895874 33.895874 0 0 1 29.305807-21.184921z" fill="{{text}}"/></svg>`,
  LEVEL_SEVEN: `<svg viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M812.206582 437.115541h-1.76541L741.590178 544.452475l70.616404-105.924606zM0.117937 400.395011a120.754051 120.754051 0 0 0 12.004788 57.022746 34.248956 34.248956 0 0 1-2.295033-5.296231A163.830057 163.830057 0 0 1 0.117937 400.395011zM928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787z" fill="{{right}}"/><path d="M1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202L847.514784 379.38663l50.490729 0.882705-9.709756 45.194499q-70.616404 110.691213-141.232807 221.912049l-70.616404-1.412328-189.428504 295.882733L533.80141 988.629656a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219z" fill="{{right}}"/><path d="M674.151512 645.963555L741.590178 544.452475l68.674453-107.336934-102.923409-1.941952 12.004789-58.258533 127.992232 2.471574L1035.884042 85.62239l-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535608-17.654101A112.809705 112.809705 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 163.830057 163.830057 0 0 0 9.709755 51.726515 34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 31.953923 42.193301l442.941394 442.23523 189.605045-295.882733z m-242.567347 4.766608l-58.611615-364.380645h-61.259731v-61.789353h130.993429l47.312991 291.645748 119.871346-291.645748H723.936077L545.806198 650.730163z" fill="{{left}}"/><path d="M609.890585 224.560165l-119.871346 291.645748-47.312991-291.645748h-130.993429v61.789353h61.259731l58.611615 364.380645h114.222033l178.30642-426.169998h-114.222033zM707.517763 435.173589l102.923409 1.941952h1.76541l-70.616404 105.924606-67.615207 101.51108h2.471575l70.616404 1.412328q70.616404-111.573918 141.232807-221.912049l9.709756-45.194499-50.490729 0.529623-127.992232-2.471574z" fill="{{text}}"/></svg>`,
  LEVEL_EIGHT: `<svg viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M774.250265 531.564981a46.959909 46.959909 0 0 0-30.541595 42.546383c0 16.771396 8.120886 30.011972 25.068824 30.188513a33.542792 33.542792 0 0 0 31.953923-35.308202 38.839022 38.839022 0 0 0-26.481152-37.426694zM794.552481 483.016203a42.722924 42.722924 0 0 0 27.010775-37.250153 24.715741 24.715741 0 0 0-5.472772-17.654101l-31.424299 48.90186a59.317779 59.317779 0 0 0 9.886296 6.002394zM928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787zM0.117937 400.395011a120.754051 120.754051 0 0 0 12.004788 57.022746 34.248956 34.248956 0 0 1-2.295033-5.296231A163.830057 163.830057 0 0 1 0.117937 400.395011z" fill="{{right}}"/><path d="M1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202-190.134668 296.588896a61.083189 61.083189 0 0 1 40.074809 60.023944 71.499109 71.499109 0 0 1-47.489531 62.142435v0.882705A70.616404 70.616404 0 0 1 870.641656 564.931232c-1.059246 59.49432-57.905451 88.270505-109.278885 88.270505a95.685227 95.685227 0 0 1-70.616404-27.187316l-203.375243 317.773818L533.80141 988.629656a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219z" fill="{{right}}"/><path d="M770.542904 452.474608a28.599644 28.599644 0 0 0 14.123281 25.068824l31.424299-48.90186a21.184921 21.184921 0 0 0-16.418313-7.06164 30.541595 30.541595 0 0 0-29.129267 30.894676z" fill="{{left}}"/><path d="M673.974971 580.2903a84.210062 84.210062 0 0 1 55.433878-74.676848v-0.882705A63.025141 63.025141 0 0 1 706.281976 454.240019c1.059246-51.020352 48.725319-80.855783 100.451835-79.796537a104.688819 104.688819 0 0 1 39.192104 7.767804l189.958127-296.588896-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535608-17.654101A112.809705 112.809705 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 163.830057 163.830057 0 0 0 9.709755 51.726515 34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 31.953923 42.193301l442.941394 442.23523 203.375243-317.773818a62.142435 62.142435 0 0 1-16.418314-43.78217z m-242.390806 70.616404l-58.611615-364.557186h-61.259731v-61.789353h130.993429l47.312991 291.645748 119.871346-291.645748H723.936077L545.806198 650.730163z" fill="{{left}}"/><path d="M609.890585 224.560165l-119.871346 291.645748-47.312991-291.645748h-130.993429v61.789353h61.259731l58.611615 364.380645h114.222033l178.30642-426.169998h-114.222033zM706.281976 454.240019a63.025141 63.025141 0 0 0 23.656496 50.490728v0.882705a84.210062 84.210062 0 0 0-55.433878 74.676848 62.142435 62.142435 0 0 0 16.418314 44.311793 95.685227 95.685227 0 0 0 70.616404 27.187316c51.373434 0 108.219639-28.070021 109.278886-88.270505a70.616404 70.616404 0 0 0-32.836628-58.964698v-0.882705a71.499109 71.499109 0 0 0 47.489531-62.142435 61.083189 61.083189 0 0 0-40.074809-60.023944 104.688819 104.688819 0 0 0-39.192104-7.767804c-51.373434-0.353082-99.039507 29.482349-99.922212 80.502701z m62.672059 150.059858c-17.654101 0-25.421905-13.417117-25.068824-30.188513a46.959909 46.959909 0 0 1 30.541595-42.546383 38.839022 38.839022 0 0 1 26.481152 36.897071 33.542792 33.542792 0 0 1-32.130464 35.837825z m47.31299-175.658305a24.715741 24.715741 0 0 1 5.472772 17.654101A42.722924 42.722924 0 0 1 794.552481 483.016203a59.317779 59.317779 0 0 1-9.886296-5.472771 28.599644 28.599644 0 0 1-14.123281-25.068824 30.541595 30.541595 0 0 1 29.129267-30.894676 21.184921 21.184921 0 0 1 16.418313 7.06164z" fill="{{text}}"/></svg>`,
  LEVEL_NINE: `<svg viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M765.070133 582.585333a101.687622 101.687622 0 0 0 39.721727-40.604433 66.37942 66.37942 0 0 1-43.429089 13.417117 76.618798 76.618798 0 0 1-22.597249-4.060443l-28.070021 43.78217h9.886297a114.398574 114.398574 0 0 0 44.488335-12.534411zM785.901972 505.966534A33.542792 33.542792 0 0 0 812.206582 494.314828a41.310596 41.310596 0 0 0 6.532018-17.654101 86.681636 86.681636 0 0 0 2.648115-21.538003 33.542792 33.542792 0 0 0-7.238182-23.303414l-43.252547 67.262125a21.538003 21.538003 0 0 0 15.005986 6.885099zM0.117937 400.395011a120.754051 120.754051 0 0 0 12.004788 57.022746 34.248956 34.248956 0 0 1-2.295033-5.296231A163.830057 163.830057 0 0 1 0.117937 400.395011zM928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787z" fill="{{right}}"/><path d="M1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202-191.017373 298.001225c30.894677 15.359068 43.78217 48.019155 43.076006 84.210061a195.254357 195.254357 0 0 1-71.852191 150.059859 178.836043 178.836043 0 0 1-101.334539 33.366251c-14.299822 0-20.478757 0-29.482349-1.235787l4.236984-23.656496-202.492538 315.478785L533.80141 988.629656a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219z" fill="{{right}}"/><path d="M762.598558 476.660727a32.483546 32.483546 0 0 0 7.944346 23.656495l43.252547-67.262125a21.891085 21.891085 0 0 0-16.241773-7.06164c-20.655298-1.235787-34.602038 27.187316-34.95512 50.66727z" fill="{{left}}"/><path d="M695.336434 593.530875a129.051478 129.051478 0 0 0 14.652903 0l28.070021-43.78217a66.202879 66.202879 0 0 1-44.311793-67.791748 109.455426 109.455426 0 0 1 109.985049-108.219639 95.508686 95.508686 0 0 1 41.134055 9.356674L1035.884042 85.62239l-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535608-17.654101A112.809705 112.809705 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 163.830057 163.830057 0 0 0 9.709755 51.726515 34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 31.953923 42.193301l442.941394 442.23523 202.492538-316.008408z m-252.630186-368.97071l47.312991 291.645748 119.871346-291.645748H723.936077L545.806198 650.730163h-114.222033l-58.611615-364.380645h-61.259731v-61.789353h130.993429z" fill="{{left}}"/><path d="M311.712819 286.172977h61.259731l58.611615 364.557186h114.222033l178.30642-426.169998h-114.222033l-119.871346 291.645748-47.312991-291.645748h-130.993429v61.612812zM693.747565 482.48658a66.202879 66.202879 0 0 0 44.311793 67.791748 76.618798 76.618798 0 0 0 22.597249 4.060443 66.37942 66.37942 0 0 0 43.429089-13.417117A101.687622 101.687622 0 0 1 765.070133 582.585333a114.398574 114.398574 0 0 1-45.194499 12.004788h-9.886297a129.051478 129.051478 0 0 1-14.652903 0l-5.825854 32.307005-4.236984 23.656496c9.003592 0 15.182527 1.412328 29.482349 1.235787A178.836043 178.836043 0 0 0 816.090484 617.893535a195.254357 195.254357 0 0 0 71.852191-149.530236c0-36.190907-12.18133-68.850994-43.076006-84.210061a95.508686 95.508686 0 0 0-41.134055-9.356674 109.455426 109.455426 0 0 0-109.985049 107.690016z m120.047886-50.314188a33.542792 33.542792 0 0 1 7.238182 23.303414 86.681636 86.681636 0 0 1-2.648115 21.184921 41.310596 41.310596 0 0 1-6.178936 17.654101 33.542792 33.542792 0 0 1-25.951528 12.004788 21.538003 21.538003 0 0 1-15.359068-6.532017 32.483546 32.483546 0 0 1-8.297428-23.126872c0-22.597249 15.005986-51.020352 35.308202-50.66727a21.891085 21.891085 0 0 1 15.888691 6.178935z" fill="{{text}}"/></svg>`,
  LEVEL_TEN: `<svg  viewBox="0 0 1235 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M928.723649 1.235787a99.922212 99.922212 0 0 0-14.476363-1.235787 98.156802 98.156802 0 0 1 14.476363 1.235787zM1213.660839 332.779804l-202.66908-282.465616a122.166379 122.166379 0 0 0-15.535608-17.654101 117.399772 117.399772 0 0 1 15.535608 17.654101l24.892283 35.308202-267.283089 416.813324-30.365054 145.822874-62.318976-1.059246-188.898881 294.646946L533.80141 988.629656a117.929395 117.929395 0 0 0 168.420123 0L1200.596804 486.547023a119.694805 119.694805 0 0 0 13.064035-153.767219zM867.287377 654.967147c-57.022746-1.059246-76.618798-46.430286-75.559552-96.567933 1.588869-88.270505 45.017958-182.366863 126.756445-180.777994 59.670861 1.059246 76.265716 48.90186 75.383011 93.919818-1.588869 83.327357-40.427891 184.838437-126.579904 183.426109zM0.117937 400.395011a120.754051 120.754051 0 0 0 12.004788 57.022746 34.248956 34.248956 0 0 1-2.295033-5.296231A163.830057 163.830057 0 0 1 0.117937 400.395011z" fill="{{right}}"/><path d="M910.010302 432.172392c-34.248956 0-51.549975 102.570327-52.079598 130.640348 0 17.654101 2.118492 37.250153 17.654101 37.426694 33.895874 0 50.66727-105.924606 51.196893-132.75884 1.059246-16.594855-1.941951-34.95512-16.771396-35.308202z" fill="{{right}}"/><path d="M672.562643 647.022801L715.462109 441.352525h-0.882705l-52.962303 21.538003v-52.962303l76.265716-30.894677 56.669664 0.529623-25.598446 123.578707L1035.884042 85.62239l-24.892283-35.308202a117.399772 117.399772 0 0 0-15.535608-17.654101A112.809705 112.809705 0 0 0 928.723649 1.235787a98.156802 98.156802 0 0 0-14.476363 0H317.891754a107.690016 107.690016 0 0 0-96.744473 52.962303L16.006627 344.784592a89.329751 89.329751 0 0 0-15.88869 55.610419 163.830057 163.830057 0 0 0 9.709755 51.726515 34.248956 34.248956 0 0 0 2.295033 5.296231 103.806114 103.806114 0 0 0 31.953923 42.193301l442.941394 442.23523 188.898881-294.646946z m-272.579319 3.707362l-58.435074-364.380645h-61.436272v-61.789353h130.99343L459.124562 516.205913l119.871346-291.645748h114.222034L514.205357 650.730163z" fill="{{left}}"/><path d="M578.289744 224.560165l-119.871346 291.645748-47.31299-291.645748h-130.99343v61.789353h61.436272l58.435074 364.380645h114.222033l178.30642-426.169998h-114.222033zM738.059358 378.503925l-76.265716 30.894677-0.176541 53.315385 52.962303-21.538003h0.882705l-42.899466 205.846817 3.35428 0.176541 62.318976 1.059246 30.365054-145.822874 25.598446-122.872543-56.140041-1.059246zM918.131188 377.62122c-81.738488-1.588869-125.167576 93.037112-126.756445 180.777994-1.059246 50.137647 17.654101 95.508686 75.559552 96.567933 85.269308 1.412328 124.991035-100.098753 126.579904-183.426109 1.235787-45.017958-15.359068-92.860571-75.383011-93.919818zM876.46751 600.239434c-16.418314 0-18.889888-20.125675-17.654101-37.426694 0-28.070021 17.654101-131.346511 52.079598-130.640348 14.829445 0 17.654101 18.713347 17.654101 35.308202C927.13478 494.314828 910.363384 600.239434 876.46751 600.239434z" fill="{{text}}"/></svg>`,
}

export const VIP_ICON_THEME_COLORS: Record<VipIconThemeType, VipIconThemeConfig> = {
  pink: {
    right: '#FF1493',
    left: '#FF69B4',
    text: '#FFFFFF',
  },
  gold: {
    right: '#FFD700',
    left: '#DAA520',
    text: '#000000',
  },
  black: {
    right: '#000000',
    left: '#333333',
    text: '#FFFFFF',
  },
  purple: {
    right: '#800080',
    left: '#9932CC',
    text: '#FFFFFF',
  },
  blue: {
    right: '#1E90FF',
    left: '#87CEFA',
    text: '#FFFFFF',
  },
  red: {
    right: '#FF0000',
    left: '#DC143C',
    text: '#FFFFFF',
  },
  green: {
    right: '#228B22',
    left: '#2E8B57',
    text: '#FFFFFF',
  },
  orange: { // 活力橙
    right: '#FF8C00', // 深橙
    left: '#FFA500', // 标准橙
    text: '#000000', // 黑色文字
  },
  rainbow: { // 彩虹渐变
    right: '#FF0000', // 红
    left: '#0000FF', // 蓝
    text: '#FFFFFF', // 白色文字
  },
  aurora: { // 极光绿
    right: '#7FFF00', // 亮绿
    left: '#00FF7F', // 青绿
    text: '#000000', // 黑色文字
  },
}

// ====================================================================================
//                                 平台 VIP 用户图标
// ====================================================================================
export const VIP_USER_ICON_COLOR_CONFIG: VipUserIconColorConfig = {
  light: {
    diamond: {
      base: '#fea700', // 主金黄
      highlight: '#FFCC5F', // 浅金黄高光
    },
    crown: {
      left: '#ffa03c',
      right: '#F25809',
      jewel: '#FF9B68', // 皇冠宝石
    },
    lightning: {
      base: '#F25809',
      top: '#FFE796',
      bottom: '#FFD832',
    },
  },
  dark: {
    diamond: {
      base: '#4B0082', // 靛青紫主色
      highlight: '#9932CC', // 紫罗兰高光
      shadow: '#1a1a1a', // 纯黑阴影
    },
    crown: {
      left: '#8B0000', // 暗红左冠
      right: '#800080', // 深紫右冠
      jewel: '#FF0000', // 正红宝石（视觉焦点）
    },
    lightning: {
      base: '#FF00FF', // 品红闪电
      top: '#DA70D6', // 兰紫顶部
      bottom: '#8B008B', // 暗紫底部
    },
  },
  pink: {
    diamond: {
      base: '#FF69B4', // 粉红
      highlight: '#FFB6C1', // 浅粉高光
      shadow: '#DB7093', // 粉紫阴影
    },
    crown: {
      left: '#FF8C69', // 浅橙左
      right: '#FF4500', // 橙红右
      jewel: '#FF82AB', // 粉红宝石
    },
    lightning: {
      base: '#FF1493', // 深粉
      top: '#FFB6C1', // 浅粉顶部
      bottom: '#DB7093', // 粉紫底部
    },
  },
}
